package com.springboot.project.common.service;

import com.springboot.project.common.entity.User;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 管理员表 服务类
 * </p>
 *
 * @author lby
 * @since 2018-03-24
 */
public interface UserService extends IService<User> {

    User getUserByName(String userName);

    String getRoleNameById(int roleId);

    List<User> selectUser(Map<String, Object> map);

    boolean exit(Map<String, Object> params);

    int editUser(User user);

    int resetPassword(int id, String password);

    int count(Map<String, Object> map);
}
